package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGroupSetting extends Object implements IMessageBase
    {
        public var memberInvite:Boolean;
        public var autoEnter:Boolean;
        public const _type:int = 20407;
        public static var _regist:SGroupSetting = new SGroupSetting(true);

        public function SGroupSetting(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGroupSetting();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.memberInvite);
            param1.writeBool(this.autoEnter);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.memberInvite = param1.readBool();
            this.autoEnter = param1.readBool();
            
        }

    }
}
